package com.pxmeta.comment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxmeta.comment.entity.Comment;
import com.pxmeta.comment.entity.vo.CommentVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wcl
 * @since 2022-04-27
 */
public interface CommentMapper extends BaseMapper<Comment> {

    List<CommentVO> getComments(@Param("page") Page<Comment> page, @Param("dynamicId") Long dynamicId, @Param("type") Integer type, @Param("parentId") Long parentId);
}
